package com.itheima.dao;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.jdbc.core.JdbcTemplate;

import java.sql.Connection;
import java.sql.SQLException;

public class MyDataSource {
    public void insert() throws SQLException {

        JdbcTemplate template=new JdbcTemplate();
        template=SingletonTemplate.getJdbcTemplate();

        template.update("insert into mvc(name,age) values(?,?);","name",32);

    }

}
